<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>spr_player_mvd</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>0</depth>
  <persistent>-1</persistent>
  <parentName>&lt;undefined&gt;</parentName>
  <maskName>spr_player_mask</maskName>
  <events>
    <event eventtype="0" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>depth = -y
global.hp = 30
global.maxhp = 30
global.lesshp = 5;
global.medhp = 10;
global.mana = 30
image_speed = 0
global.allow = 1
global.maxmana = 30
</string>
          </argument>
        </arguments>
      </action>
      <action>
        <libid>1</libid>
        <id>201</id>
        <kind>0</kind>
        <userelative>-1</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>1</exetype>
        <functionname>action_create_object</functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>10</kind>
            <object>obj_Barra</object>
          </argument>
          <argument>
            <kind>0</kind>
            <string>164</string>
          </argument>
          <argument>
            <kind>0</kind>
            <string>970</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>
///Movimiento
//Permiso de moverse
depth =-y
if global.allow = 1
{
//Al presionar una tecla..
if keyboard_check(vk_down)
{
y+=12
sprite_index = spr_player_mvd
image_speed = 0.3
}

if keyboard_check(vk_up)
{
y-=12
sprite_index = spr_player_mvu
image_speed = 0.3
}

if keyboard_check(vk_left)
{
x-=12
sprite_index = spr_player_mvl
image_speed = 0.3
}

if keyboard_check(vk_right)
{
x+=12
sprite_index = spr_player_mvr
image_speed = 0.3
}

//Al soltar una tecla..

if keyboard_check_released(vk_down)
{
sprite_index = spr_player_mvd
image_index = 0
image_speed = 0
}

if keyboard_check_released(vk_up)
{
sprite_index = spr_player_mvu
image_index = 0
image_speed = 0
}

if keyboard_check_released(vk_left)
{
sprite_index = spr_player_mvl
image_index = 0
image_speed = 0
}

if keyboard_check_released(vk_down)
{
sprite_index = spr_player_mvd
image_index = 0
image_speed = 0
}

if keyboard_check_released(vk_right)
{
sprite_index = spr_player_mvr
image_index = 0
image_speed = 0
}
if keyboard_check(ord("X")) and keyboard_check(vk_left)
{
x-=20
}
if keyboard_check(ord("X")) and keyboard_check(vk_right)
{
x+=20
}
if keyboard_check(ord("X")) and keyboard_check(vk_up)
{
y-=20
}
if keyboard_check(ord("X")) and keyboard_check(vk_down)
{
y+=20
}
}



if global.hp&gt;=global.maxhp
{
global.hp = global.maxhp
}

if global.allow = 0
{
image_speed = 0
image_index = 0
}

</string>
          </argument>
        </arguments>
      </action>
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if global.hp &lt;=0
{
game_end();
}

if global.mana&gt;= global.maxmana
{
global.mana = global.maxmana
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="4" ename="obj_solid">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>x = xprevious
y = yprevious
</string>
          </argument>
        </arguments>
      </action>
    </event>
  </events>
  <PhysicsObject>0</PhysicsObject>
  <PhysicsObjectSensor>0</PhysicsObjectSensor>
  <PhysicsObjectShape>0</PhysicsObjectShape>
  <PhysicsObjectDensity>0.5</PhysicsObjectDensity>
  <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
  <PhysicsObjectGroup>0</PhysicsObjectGroup>
  <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
  <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
  <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
  <PhysicsObjectAwake>-1</PhysicsObjectAwake>
  <PhysicsObjectKinematic>0</PhysicsObjectKinematic>
  <PhysicsShapePoints/>
</object>
